<layout name="layout"/>
<style>
    body {
        background: #fff;
    }
</style>
<div class="row">
    <div class="col-lg-12">
        <ul class="breadcrumb">
            <li><a href="{:U('Pay/noticelist')}"><i class="icon-home"></i> 订阅通知</a></li>
            <volist name="navPage" id="navi">
                <li><a href="{$navi.url}">{$navi.name}</a></li>
            </volist>
        </ul>
    </div>
</div>
<!-- 搜索 -->
<div style="text-align: center;width: 100%;display: inline-block;height: 60px">
    <select name="application_id" id="application_id" class="form-control" style="position: relative; left: 0px; top: 15px; background-color:#ffffff; height:35px; width: 150px;">
        <option value="0">不限</option>
        <volist name="applicationList" id="val" key="k">
            <option value="{$val.application_id}">{$val.application_name}</option>
        </volist>
    </select>
</div>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <div class="clearfix"></div>
            <div class="namage_cont mt10 bdt_ccc">
                <table class="table text-center">
                    <thead>
                    <tr>
                        <th class="wp5">序号</th>
                        <th class="wp10">消息时间</th>
                        <th class="wp10">所属应用</th>
                        <th class="wp10">产品渠道</th>
                        <th class="wp10">来源</th>
                        <th class="wp10">消息内容</th>
                    </tr>
                    </thead>
                    <tbody class="ajax-dom">
                    <volist name="dataList" id="vo" key="k">
                        <tr class="c_list">
                            <td class="wp5">{$k}</td>
                            <td class="wp10">{$vo.insert_dt}</td>
                            <td class="wp10">{$vo.application_name}</td>
                            <td class="wp10">{$vo.product_id|default="-"}</td>
                            <td class="wp10">{$vo.environment_show}</td>
                            <td class="wp10">{$vo.notification_show}</td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                <empty name="dataList">
                    <div class="noData-tips">暂无相关信息！</div>
                </empty>
            </div>
        </section>
    </div>
</div>
<div class="paginationU">{$page}</div>
<script src="__PUBLIC__/js/module/module.pay.js"></script>
<script>
    var APP = "__APP__";
    var pay = new Pay();
    var application_id = "{$application_id}";
    $(function (){
        pay.init();
        $("#application_id").val (application_id);
    });
    $("#application_id").change(function() {
        pay.searchNotice();
    });
</script>